package cloud.lysky.java.on.enumclass;

/**
 * @author luoly
 * @describe
 * @date 2023/3/3 13:16
 **/

//RPG游戏枚举
enum RPGGame {
    WUSHI3,SHENJIE2,BODEZHIMEN,GUMULIYING,SHANGGUJUANZHOU;
}

public class RandomTest {
    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            //随机获取一款RPG游戏
            //这简直棒极了
            System.out.print(Enums.random(RPGGame.class) + " ");
        }
    }
}
